/**
 * The Prophecy
 * java based lightweight texas hold'em poker software base
 * http://code.google.com/p/theprophecy/
 */

package org.poker.prophecy.core;

/**
 * @author bg
 */

public class CardTranslator implements CardInterface{

    public static char getCharForSuit(int suit){
        switch(suit){
            case HEARTS: return 'h';
            case DIAMONDS: return 'd';
            case SPADES: return 's';
            case CLUBS: return 'c';
            default: return '?';
        }
    }

    public static char getCharForValue(int value){
        switch (value){
            case ACE: return 'A';
            case TWO: return '2';
            case THREE: return '3';
            case FOUR: return '4';
            case FIVE: return '5';
            case SIX: return '6';
            case SEVEN: return '7';
            case EIGHT: return '8';
            case NINE: return '9';
            case TEN: return 'T';
            case JACK: return 'J';
            case QUEEN: return 'Q';
            case KING: return 'K';
            default: return '?';
        }
    }
    
}
